var app = getApp()
Page({
        data: {
                msg:[]
        },

        onLoad: function (options) {
                var that = this
                var data = app.globalData.data
                that.setData({
                        msg: data,
                });         
                console.log(this.data.msg) 
                console.log(this.data.msg[0].img)      
                console.log(this.data.msg[0].name)
                console.log(this.data.msg[0].id)
                wx.setNavigationBarTitle({
                        title: '我的'
                        })
        },
        denglu(){
                wx.navigateTo({
                  url: '/login/pages/login/login',
                })
        },
        my_msg(){
                console.log("我的主页")
                wx.navigateTo({
                  url: "/pages/my/my_msg/my_msg",
                })
        },
        shoucang(){
                console.log("收藏")
                wx.navigateTo({
                        url: "/pages/my/collect/collect",
                      })
        },
        pinglunshu(){
                console.log("评论数")
                wx.navigateTo({
                        url: "/pages/my/comment/comment",
                      })
        },
        fatieshu(){
                console.log("发帖数")
                wx.navigateTo({
                        url: "/pages/my/post_data/post_data",
                      })
        },
        my_circle(){
                console.log("我创建的圈子")
                wx.navigateTo({
                        url: "/pages/my/my_circle/my_circle",
                      })
        },
        zuji(){
                console.log("足迹")
                wx.navigateTo({
                        url: "/pages/my/my_track/my_track",
                      })
        }
})